package com.jplus.service;

import com.jplus.VO.ResultVO;
import com.jplus.entity.User;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface LoginService {

    /**
     * 登录分为customer登录和admin登录
     * @param user
     * @param session
     * @param request
     * @return
     */

    ResultVO loginAction(User user, HttpSession session, HttpServletRequest request);

    ResultVO logOutAction(String sessionId);

}
